package com.first.order.controller;

import com.first.common.pojo.EduCourse;
import com.first.common.pojo.EduTeacher;
import com.first.common.vo.Result;
import com.first.order.service.EduCourseService;
import com.first.order.service.EduTeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: SecondProject
 * @description:
 * @author: 李榕轩
 * @create: 2023-05-27 17:25
 **/
@RestController
@RequestMapping("order/teacher")
@Api(tags = "教师接口类")
public class EduTeacherController {
    @Autowired
    private EduTeacherService eduTeacherService;
    @PostMapping("/queryAllTeacherBYTeacherName/{teacherName}")
    @ApiOperation(value = "条件查询")
    public Result queryAllTeacherBYTeacherName(@PathVariable String teacherName) {
        //System.out.println(userVo);
        EduTeacher eduTeacher = eduTeacherService.queryAllTeacherBYTeacherName(teacherName);

        return Result.success(eduTeacher);

    }
}
